const common = require('./webpack.common')
const webpack = require('webpack')
const merge = require('webpack-merge')

module.exports = merge(common, {
    mode: 'development',
    devServer: {
        contentBase: './public',
        open: true,
        hot: true
    },
    devtool: 'eval',
    plugins: [
        new webpack.DefinePlugin({
            BASE_URL:'"http://localhost:8080/"'
        }),
        new webpack.HotModuleReplacementPlugin()
    ]
})